import { TABLE_ID } from '@/constants'
import MyLocalStorage from '@/utils/Mylocalstorage'

export const OPERATE_COLUMN = 'operate'
export const INDEX_COLUMN = 'index'

const columns = [
  'id',
  'name',
  'rule_scope',
  'severity',
  'threat_type',
  'attack_result',
  'vuln_desc',
  'founder',
  'create_time',
  'check_status',
  'publish_status'
]

export const initColumns = () => {
  const config = MyLocalStorage.localstorage.getItem(TABLE_ID)
  if (config) return
  MyLocalStorage.localstorage.setItem(TABLE_ID, columns)
}

